//点击购物车图标显示整个购物车
function showCart() {
    location.href="/showCart";
}
//去结算的提示框
function buy(){
    if(document.getElementById("money").value==='0'||document.getElementById("money").value==="0"||document.getElementById("money").value===0)
    {
        alert("无可下单的商品！请确认购物车内有未下架的商品存在！");
    }
    else if(document.getElementById("address").value==='未填'||document.getElementById("phone").value==='未填')
    {
        alert("收货地址或联系方式不能为空！请到个人信息中修改！");
    }
    else {
        var r = confirm("您确认下单吗？共" + document.getElementById("money").value + "元！");
        if (r === true) {
            location.href = "/changeCartToHistory";
        } else {
            x = "您取消了付款！";
        }
    }
}
